﻿<?php
/**
 * 登录
 * @author lijun10
 *
 */
class Application_Form_Login extends Zend_Form {
	public  function  init(){
		$this->setMethod('POST');
		
		$this->addElement('text','email',array(
				'label'=>'请输入Email：',
				'required'=>true,
				'filters'=>array('StringTrim')
		));

		$this->addElement('password','password',array(
				'label'=>'请输入密码:',
				'required'=>true,
				'filters'=>array('StringTrim'),
				'validators'=>array(array('StringLength', false, array(6)))
		));

		$this->addElement(new Zend_Form_Element_Submit('save'));
	}
}